#include<vector>
using namespace std;
class Solution {
public:
    vector<int> numMovesStones(int a, int b, int c) {
        if (a > b)
            swap(a, b);
        if (a > c)
            swap(a, c);
        if (b > c)
            swap(b, c);
        int max = c - a - 2;
        int min = 1;
        if (c - b > 2 && b - a > 2)
            min = 2;
        else if (c - b == 1 && b - a == 1)
            min = 0;
        return { min, max };

    }
};